/**
 * 2017年7月1日
 */
package cn.edu.bjtu.model.core.spring;

import org.springframework.beans.BeansException;
import org.textplantform.common.api.AfterInitializationExecute;
import org.textplantform.common.core.spring.BaseBeanPostProcessor;

/**
 * @author Alex
 *
 */
public class AfterModelInitProcessor extends BaseBeanPostProcessor{
	@Override
	public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {
		if (bean instanceof AfterInitializationExecute) {
			((AfterInitializationExecute)bean).executeAfterBeanInitialization();
		}
		return bean;
	}
}
